import 'package:flutter/material.dart';

class MyAppBar extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text("自定义AppBar"),
      ),
      endDrawer: Drawer(
        child: ListView(
          padding: EdgeInsets.all(0),
          children: <Widget>[
            UserAccountsDrawerHeader(
              accountName: Text("技术胖"),
              accountEmail: Text("jspang@163.com"),
              currentAccountPicture:CircleAvatar(backgroundImage: NetworkImage("http://jspang.com/static//myimg/blogtouxiang.jpg"),),
              decoration: BoxDecoration(
                color: Colors.lightBlue
              ),

            )
          ],
        ),
      ),

    );
  }
}